package FourHomeworkDesign.Adappter;

/**
 * @author 北巷_东坡
 * @date 2022/11/10 21:25
 * @computer 10741
 */
public class Adapter206 implements Cat206,Dog206{
    private Dog206 dog206;
    private Cat206 cat206;

    public Dog206 getDog206() {
        return dog206;
    }

    public void setDog206(Dog206 dog206) {
        this.dog206 = dog206;
    }

    public Cat206 getCat206() {
        return cat206;
    }

    public void setCat206(Cat206 cat206) {
        this.cat206 = cat206;
    }

    @Override
    public void cry() {
        System.out.print("猫学");
        dog206.Wang();
    }

    @Override
    public void catchMouse() {
        cat206.catchMouse();
    }

    @Override
    public void Wang() {
        dog206.Wang();
    }

    @Override
    public void Action() {
        System.out.print("狗学");
        cat206.catchMouse();
    }
}
